<%@ page import="com.yyyzzz.DAO.impl.studentDaoimpl" %>
<%@ page import="com.yyyzzz.DAO.studentDao" %>
<%@ page import="com.mysql.cj.Session" %>
<%@ page import="com.yyyzzz.bean.Student" %>
<%@ page import="java.sql.SQLException" %>
<%--
  Created by IntelliJ IDEA.
  User: 18050
  Date: 2021/12/10
  Time: 22:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>课程信息</title>
    <link href="courseInfo/courseInfo.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
    <a href="#" class="logo">学生选课系统</a>
    <ul>
        <li>
            <a href="studentMain.jsp" >可选课程</a>

        </li>
        <li><a href="courseServlet" >已选课程</a>
        </li>
        <li><a href="#" class="active">修改个人信息</a>
        </li>
        <li><a href="#"></a>
        </li>
    </ul>
</header>
<section>
    <img src="Login/stars.png" id="stars">
    <img src="Login/moon.png" id="moon">
    <img src="Login/mountainsbehind.png" id="mountains_behind">
    <img src="Login/mountainsfront.png" id="mountains_front">
</section>
<div class="main1">
    <h1>修改学生个人信息</h1>
    <c:forEach items="${studentList}" var="student" >

        <form action="updateStudentServlet" method="post">
            <div> 学号<input readonly value="${student.stuNo}" name="stuNo" type="text"
                            style="margin-left: 17px;margin-bottom:5px; margin-top: 30px;"></div>
            <div> 姓名<input value="${student.stuName}" name="stuName" type="text"
                            style=" margin-left: 17px;margin-bottom:5px;"></div>
            <div> 班级<input value="${student.stuClass}" name="stuClass" type="text" style="margin-bottom: 5px; ">
            </div>
            <div> 专业<input value="${student.stuMajor}" name="stuMajor" type="text"
                           style=" margin-left: 32px;margin-bottom:5px;"></div>
            <div> 邮箱<input value="${student.stuEmail}"name="stuEmail" type="text" style=" margin-left: 32px;margin-bottom:5px;"></div>
            <div>
                <div> 电话<input value="${student.stutelphone}"name="stutelphone" type="text" style=" margin-left: 32px;margin-bottom:5px;"></div>
                <div>
                <input type="submit" value="确认"><a href="updateStudentServlet" style="color:rosybrown "></a>
            </div>
            </div>
        </form>
    </c:forEach>
</div>

</body>
</html>
